<!--  -->
<template>
  <div class="footer_guide">
    <a href="javascript:;" class="guide_item" :class="{on:'/msite'===$route.path}" @click="goTo('/msite')">
        <span class="item_icon">
            <img src="../../assets/img/shouye.png" v-if="'/msite'===$route.path?false:true" alt="">
            <img src="../../assets/img/shouye1.png" v-else alt="">
        </span>
        <span class="item_title">首页</span>
    </a>
    <a href="javascript:;" class="guide_item" :class="{on:'/category'===$route.path}" @click="goTo('/category')">
        <span class="item_icon">
            <img src="../../assets/img/fenlei.png" v-if="'/category'===$route.path?false:true" alt="">
            <img src="../../assets/img/fenlei1.png" v-else alt="">
        </span>
        <span class="item_title">分类</span>
    </a>
    <a href="javascript:;" class="guide_item" :class="{on:'/shopcart'===$route.path}" @click="goTo('/shopcart')">
        <span class="item_icon">
            <img src="../../assets/img/gouwuche.png" v-if="'/shopcart'===$route.path?false:true" alt="">
            <img src="../../assets/img/gouwuche1.png" v-else alt="">
        </span>
        <span class="item_title">购物车</span>
    </a>
    <a href="javascript:;" class="guide_item" :class="{on:'/profile'===$route.path}" @click="goTo('/profile')">
        <span class="item_icon">
            <img src="../../assets/img/me.png" v-if="'/profile'===$route.path?false:true" alt="">            
            <img src="../../assets/img/me1.png" v-else alt="">            
        </span>
        <span class="item_title">个人中心</span>
    </a>
  </div>
</template>

<script>
export default {
  data () {
    return {
        
    };
  },

  components: {},

  computed: {},

  methods: {
      goTo(path){
          this.$router.push(path)
      }
  }
}

</script>
<style lang='stylus' scoped>
    @import "../../common/stylus/mixins.styl"
    .footer_guide
        top-border-1px(#e4e4e4)
        position fixed
        z-index 100
        left 0
        right 0
        bottom 0
        background-color #fff
        width 100%
        height 50px
        display flex
        .guide_item
            display flex
            flex 1
            text-align center
            flex-direction column
            align-items center
            margin-top 5px
            color #7E7578
            &.on
                color #145B3E
            .item_icon
                margin-top 2px
                margin-bottom 2px
                img 
                    height 20px
                    width 20px
            .item_title
                font-size 12px
                transform scale(0.9)
</style>